import { Component, OnInit, Output, Input, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-title-container',
  templateUrl: './title-container.component.html',
  styleUrls: ['./title-container.component.scss']
})
export class TitleContainerComponent implements OnInit {
  isShowtitle = true;
  @Input() title;
  @Output() closeToolBar = new EventEmitter<any>();
  constructor() { }

  ngOnInit() {
  }
  closeMdel(){
    this.closeToolBar.emit(false);
  }
  hidePanel(){
       // 设置内部内容不可见
       this.isShowtitle = !this.isShowtitle;
       if(!this.isShowtitle){
         document.getElementById('ctv-panel').style.transform = 'rotate(0deg)';
       }else{
         document.getElementById('ctv-panel').style.transform = 'rotate(180deg)';
       }
  }

}
